<?php

class Example_Element_Article_Page
    extends OOWP_Element_Article
{

    public function __construct(array $args = array( ))
    {
        $header = new OOWP_Element_Header(array(
            'contents' => array(
                new OOWP_Element(array(
                    'attributes' => array(
                        'class' => 'entry-title',
                    ),
                    'contents' => array(
                        new OOWP_Atom_PostTitle( ),
                    ),
                    'tag' => 'h1',
                )),
            ),
        ));

        $content = new OOWP_Element(array(
            'attributes' => array(
                'class' => array('entry-content'),
            ),
            'contents' => array(
                new OOWP_Atom_PostContent( ),
            )
        ));

        $footer = null;

        $input = $this->merge_arguments(array(
            'attributes' => array(
                'class' => array(
                    'clearfix',
                    'grid_12',
                ),
            ),
            'contents' => array(
                'header' => $header,
                'content' => $content,
                'footer' => $footer,
            ),
        ), $args);

        parent::__construct($input);
    }

}
